package o;

import android.content.Context;
import android.util.Log;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import androidx.annotation.RestrictTo;

public abstract class hd {
    private d ˊ;
    private c ˋ;
    private final Context ˏ;

    @RestrictTo({androidx.annotation.RestrictTo.d.LIBRARY_GROUP_PREFIX})
    public interface c {
        void ˎ(boolean z);
    }

    public interface d {
        void ˏ(boolean z);
    }

    public abstract View ˏ();

    public hd(Context context) {
        this.ˏ = context;
    }

    public View ॱ(MenuItem menuItem) {
        return ˏ();
    }

    public boolean ˋ() {
        return false;
    }

    public boolean ˎ() {
        return true;
    }

    public boolean ˊ() {
        return false;
    }

    public boolean ॱ() {
        return false;
    }

    public void ˎ(SubMenu subMenu) {
    }

    @RestrictTo({androidx.annotation.RestrictTo.d.LIBRARY_GROUP_PREFIX})
    public void ˏ(boolean z) {
        if (this.ˋ != null) {
            this.ˋ.ˎ(z);
        }
    }

    @RestrictTo({androidx.annotation.RestrictTo.d.LIBRARY_GROUP_PREFIX})
    public void ˎ(c cVar) {
        this.ˋ = cVar;
    }

    public void ˋ(d dVar) {
        if (!(this.ˊ == null || dVar == null)) {
            Log.w("ActionProvider(support)", "setVisibilityListener: Setting a new ActionProvider.VisibilityListener when one is already set. Are you reusing this " + getClass().getSimpleName() + " instance while it is still in use somewhere else?");
        }
        this.ˊ = dVar;
    }

    @RestrictTo({androidx.annotation.RestrictTo.d.LIBRARY_GROUP_PREFIX})
    public void ʼ() {
        this.ˊ = null;
        this.ˋ = null;
    }
}
